<script setup lang="ts">
import { RouterView, useRoute } from 'vue-router'
import { computed } from 'vue'

const route = useRoute()
const currentRoute = computed(() => route.path)
</script>

<template>
  <RouterView />
</template>

<style>
/* 全局样式 */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#app {
  height: 100vh;
}


.header {
  background: #409eff;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  color: white;
}

.logo-icon {
  font-size: 24px;
  margin-right: 8px;
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
}

.nav-menu {
  background: transparent;
  border: none;
  color: white;
}

.nav-menu .el-menu-item {
  color: rgba(255, 255, 255, 0.85);
}

.nav-menu .el-menu-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-menu .el-menu-item.is-active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.content {
  width: 100%;
}

.fill-height {
  height: 100%;
  width: 80vw;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.flex-grow-1 {
  flex-grow: 1;
}
</style>
